package com.ssn.visitor.company;

import java.util.ArrayList;
import java.util.List;

public class Company {
    private List<Staff> staffList;
    Company(){
        this.staffList = new ArrayList<>();;
    }
    public void add(Staff staff){
        staffList.add(staff);
    }
    public void remove(Staff staff){
        staffList.remove(staff);
    }

    public void accept(Visitor visitor){
        staffList.forEach(c -> {
            c.accept(visitor);
        });
    }
}
